package com.team.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 新设备申请库存类
 * @author 宁一健
 *
 */
@Entity
@Table(name="equipmentstock")
public class EquipmentStock {
	private Integer id;
	private String name;//库存设备名称
	private Integer price;//库存设备总价
	private Integer stock;//库存设备总数
	public EquipmentStock() {
		super();
	}
	public EquipmentStock(Integer id, String name, Integer price, Integer stock) {
		super();
		this.id = id;
		this.name = name;
		this.price = price;
		this.stock = stock;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name="name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(name="price")
	public Integer getPrice() {
		return price;
	}
	public void setPrice(Integer price) {
		this.price = price;
	}
	@Column(name="stock")
	public Integer getStock() {
		return stock;
	}
	public void setStock(Integer stock) {
		this.stock = stock;
	}
	@Override
	public String toString() {
		return "EquipmentStock [id=" + id + ", name=" + name + ", price=" + price + ", stock=" + stock + "]";
	}
	
	

}
